function smallestEvenMultiple(n: number): number {
    return n % 2 === 0 ? n : n * 2;
}
